

///登录的请求参数
class LoginRequst{
  String authorization;
  String grant_type;
  String username;
  String code;
  String refresh_token;

  LoginRequst({this.authorization, this.grant_type, this.username, this.code,
      this.refresh_token});


}

///解析登录请求响应
class LoginRespons{
  String access_token;
  String token_type;
  String refresh_token;
  int isPhone;
  int isPerfect;
  int anonymous;
  int grantType;


  LoginRespons({this.access_token, this.token_type, this.refresh_token,
      this.isPhone, this.isPerfect, this.anonymous, this.grantType});

  LoginRespons.fromJson(Map<String, dynamic> json){
    access_token = json["access_token"];
    token_type = json["token_type"];
    refresh_token = json["refresh_token"];
    isPhone = json["isPhone"];
    isPerfect = json["isPerfect"];
    anonymous = json["anonymous"];
    grantType = json["grantType"];

  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["access_token"]=access_token;
    map["token_type"]=token_type;
    map["refresh_token"]=refresh_token;

    map["isPhone"]=isPhone;
    map["isPerfect"]=isPerfect;
    map["anonymous"]=anonymous;
    map["access_token"]=access_token;
    map["grantType"]=grantType;
    return map;
  }

  @override
  String toString() {
    return toJson().toString();
  }
}



///手机发送验证码
class LoginSend{
  String authorizations;
  String phoneNumber;
  int type;//0-登录验证码 1-绑定手机号验证码
  String anonymousToken;

  LoginSend({
    this.authorizations, this.phoneNumber, this.type, this.anonymousToken
  });
}